load("//bazel:defs.bzl", "file_size_check")
load("//ic-os:defs.bzl", "icos_build")
load("//ic-os/guestos:defs.bzl", "image_deps")
load(":defs.bzl", "generate_dummy_recovery_archive")

# The macro contains several targets.
# Check
#       //ic-os/guestos/BUILD.bazel for examples
#    or //ic-os/defs.bzl for the full list of targets.
icos_images = icos_build(
    name = "recovery-dev",
    image_deps_func = image_deps,
    tags = [
        "manual",
    ],
    visibility = [
        "//rs:ic-os-pkg",
        "//rs:system-tests-pkg",
    ],
)

file_size_check(
    name = "disk_img_size_check",
    file = icos_images.disk_image,
    max_file_size = 600 * 1000 * 1000,  # 580 MB on 2025-06-26
    tags = [
        "manual",
        "no-cache",
    ],
)

file_size_check(
    name = "update_img_size_check",
    file = icos_images.update_image,
    max_file_size = 600 * 1000 * 1000,  # 578 MB on 2025-06-26
    tags = [
        "manual",
        "no-cache",
    ],
)

file_size_check(
    name = "update_img_test_size_check",
    file = icos_images.update_image_test,
    max_file_size = 600 * 1000 * 1000,  # 578 MB on 2025-06-26
    tags = [
        "manual",
        "no-cache",
    ],
)

generate_dummy_recovery_archive(
    name = "recovery_archive",
)
